package com.rabbit.eap.system.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.rabbit.eap.framework.convert.Covert;
import com.rabbit.eap.framework.core.validator.groups.AllGroup;
import com.rabbit.eap.framework.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.dto
 * @className SysDictDataDTO
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:02
 * <p>Description:
 * SysDictDataDTO对象
 * </p>

 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysDictDataDTO对象")
public class SysDictDataDTO extends Covert {
    private static final long serialVersionUID = 1L;
    /**
     * 字典ID
     */
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty("字典ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 字典排序
     */
    @ApiModelProperty("字典排序")
    @TableField("dict_sort")
    private Integer dictSort;

    /**
     * 字典标签
     */
    @ApiModelProperty("字典标签")
    @TableField("dict_label")
    private String dictLabel;

    /**
     * 字典键值
     */
    @ApiModelProperty("字典键值")
    @TableField("dict_value")
    private String dictValue;

    /**
     * 字典类型关联ID
     */
    @NotNull(message = "字典类型不能为空", groups = {AllGroup.class})
    @ApiModelProperty("字典类型关联ID")
    @TableField("dict_type_id")
    private Integer dictTypeId;

    /**
     * 是否默认（0是 1否）
     */
    @ApiModelProperty("是否默认（0是 1否）")
    @TableField("defaulted")
    private String defaulted;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty("状态（0正常 1停用）")
    @TableField("status")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

}